Skip to content

fix(phpstan): remove unnecessary nullsafe operators in GraphController#48

Open
Weegy wants to merge 1 commit intomainfrom
hotfix/phpstan-graph-controller
Open

fix(phpstan): remove unnecessary nullsafe operators in GraphController#48
Weegy wants to merge 1 commit intomainfrom
hotfix/phpstan-graph-controller

Conversation

@Weegy
Copy link
Copy Markdown
Contributor

@Weegy Weegy commented Mar 16, 2026

Summary

Fixes 2 PHPStan errors in app/Http/Controllers/Api/GraphController.php:

  • Line 199: Using nullsafe property access on left side of ?? is unnecessary
  • Line 200: Same error for targetNode

The nullsafe operator (?->) is redundant when ?? already handles null.

Quality Gates

  • PHPStan: 0 errors in GraphController.php
  • Pint: passes
  • Tests: no regressions introduced

@Weegy Weegy added the bug Something isn't working label Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant